/*
 * @Author: sdorein sdorein@163.com
 * @Date: 2024-07-12 18:06:44
 * @LastEditors: sdorein sdorein@163.com
 * @LastEditTime: 2024-08-15 11:37:25
 * @FilePath: \vite-ts-project\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router';

// 定义一些路由
const routes = [
  { path: '/', component: () => import('../views/index.vue') },
  { path: '/test', component: () => import('../views/test.vue') },  
  { path: '/build', component: () => import('../build/index.vue') }
];

// 创建路由实例并传递 `routes` 配置
const router = createRouter({
  history: createWebHistory(),
  routes, // `routes: routes` 的缩写
});

export default router;